#include <linux/clocksource.h>
#include <linux/list.h>

static LIST_HEAD(clocksource_list);

static void clocksource_enqueue(struct clocksource *cs)
{
    struct list_head *entry = &clocksource_list;

    list_add(&cs->list, entry);
}

int __clocksource_register_scale(struct clocksource *cs, u32 scale, u32 freq)
{
    clocksource_enqueue(cs);

    return 0;
}

int clocksource_register_hz(struct clocksource *cs, unsigned int hz)
{
    return __clocksource_register_scale(cs, 1, hz);
}

